<template>
<div class="gdap-footer">
  <el-row>
    <el-col :span="1">
      <span>&nbsp;&nbsp;</span>
    </el-col>
    <el-col :span="19" style="text-align: center;">
      <span>
        ICP备案号：新ICP备14003265号-5    版权所有：新疆云计算中心   技术支持：中国科学院新疆理化技术研究所
      </span>
      <br />
      <span>
        联系电话：13699998353、0991-3851088   邮箱：792827552@qq.com
      </span>
    </el-col>
    <el-col :span="4">
      <span style="text-align: right;">
        访客：{{visitors}}人
      </span>
    </el-col>
  </el-row>
</div>
</template>

<script>
import api from '@/utils/api'
export default {
  data() {
    return {
      visitors: ''
    }
  },
  mounted() {
    this.getVisitors()
  },
  methods: {
    getVisitors: async function() {
      this.visitors = await api({
        url: '/nceeSysMgr/rest/sendGet/analysis/rest/getVisitNumber',
        method: 'get'
      }).then(res => {
        return res.data
      })
    }
  }
}
</script>

<style scoped>
  .gdap-footer {
    width: 100%;
    height: 60px;
    position: fixed;
    bottom: 0px;
    line-height: 1.4;
    color: white;
    background-color: rgb(34,34,34);
    padding-top: 10px;
  }
</style>
